#!/bin/bash

# Set path to hadoop home dir
# HADOOP_HOME=/home/tulinski/hadoop/hadoop-0.20.2

if [ -z "${HADOOP_HOME+x}" ]; then
	echo "HADOOP_HOME is not defined. Set it at the beginning of the script."
	exit 1
fi

HADOOP=${HADOOP_HOME}/bin/hadoop

COT_JAR=../../../cot.jar

# defaults
# mapred.job.tracker=local (mapred-default.xml)
# fs.default.name=file:/// (core-default.xml)

INPUT_DIR=./input
OUTPUT_DIR=./output

${HADOOP} jar ${COT_JAR} tul.cot.job.Migrations	\
	-in ${INPUT_DIR}/4trees	\
	-pairs ${INPUT_DIR}/4trees.pairs \
	-out ${OUTPUT_DIR}/4trees \
	-outLocal ${OUTPUT_DIR}/4trees.local \
	-numTrees 4 \
	-startTime 6.0 \
	-numSeg 1

